package org.com.coolfish.common.database.repository;


import java.math.BigDecimal;

import org.com.coolfish.common.database.entity.KuyuOrderAccount;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface KuyuOrderAccountRepository extends JpaRepository<KuyuOrderAccount, Integer> {
	@Modifying
    @Query("UPDATE KuyuOrderAccount oa SET oa.money =:money ,oa.status=3 WHERE oa.operatorid=:operatorid")
	void changOrderAccount(@Param("money") BigDecimal money,@Param("operatorid")Integer operatorid);
}
